﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Lite.Net
{
    /// <summary>
    /// Contains the result of an event which returns a partially-filled byte
    /// buffer.
    /// </summary>
    public class DataBufferEventArgs
        : EventArgs
    {
        /// <summary>
        /// Test
        /// </summary>
        /// <param name="buffer"></param>
        /// <param name="byteCount"></param>
        public DataBufferEventArgs(IBufferHandle buffer, int count)
        {
            this.Buffer = buffer;
            this.Count = count;
        }

        public IBufferHandle Buffer
        {
            get;
            private set;
        }

        public int Count
        {
            get;
            private set;
        }
    }
}
